﻿/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	if (!contextName) {
		contextName = "";
	}
    config.filebrowserBrowseUrl = contextName+'/ckeditor/uploader/browse.jsp';  
    config.filebrowserImageBrowseUrl = contextName+'/ckeditor/uploader/browse.jsp?type=Images';  
    config.filebrowserFlashBrowseUrl = contextName+'/ckeditor/uploader/browse.jsp?type=Flashs';  
    config.filebrowserUploadUrl = contextName+'/mgr/ckfile_upload.action';  
    config.filebrowserImageUploadUrl = contextName+'/mgr/ckfile_upload.action?type=Images';  
    config.filebrowserFlashUploadUrl = contextName+'/mgr/ckfile_upload.action?type=Flashs';  
    config.filebrowserWindowWidth = '640';  
    config.filebrowserWindowHeight = '480';  
    //config.width = 500; //宽度   
    //config.height = 400; //高度 
    
    config.toolbar = 'MyToolbar';
    
	config.toolbar_MyToolbar =
	[
		{ name: 'document', items : [ 'NewPage','Preview' ] },
		{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
		{ name: 'editing', items : [ 'Find','Replace','-','SelectAll' ] },
		{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak','Iframe' ] },
                '/',
		{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
		{ name: 'colors', items : [ 'TextColor','BGColor' ] },
		{ name: 'basicstyles', items : [ 'Bold','Italic','Strike','-','RemoveFormat' ] },
			'/',
		{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Outdent','Indent','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },
		{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
		{ name: 'tools', items : [ 'Maximize', 'ShowBlocks'] }
	];
};
